﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageUser.master" AutoEventWireup="true" CodeFile="InsuranceType.aspx.cs" Inherits="InsuranceType" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>Insurance Information</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <asp:DataList ID="DataList1" runat="server" CellPadding="4" 
        DataKeyField="InsuranceId" DataSourceID="SqlDataSource1" ForeColor="Black" 
        Width="531px" BackColor="#CCCCCC" BorderColor="#999999" 
        BorderStyle="Solid" BorderWidth="3px" CellSpacing="2" GridLines="Both">
        <FooterStyle BackColor="#CCCCCC" />
        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
        <ItemStyle BackColor="White" />
        <ItemTemplate>            
            <h2><asp:HyperLink ID="InsuranceTypeLabel" runat="server" 
                Text='<%# Eval("InsuranceType") %>' NavigateUrl='<%# Eval("InsuranceId", "InsuranceDetails.aspx?InsuranceId={0}") %>' ></asp:HyperLink></h2>            
            <asp:Label ID="DescriptionLabel" runat="server" 
                Text='<%# Eval("Description") %>' />
            <br />
            <asp:HyperLink ID="HyperLink6" runat="server" Text="Details" NavigateUrl='<%# Eval("InsuranceId", "InsuranceDetails.aspx?InsuranceId={0}") %>' ></asp:HyperLink>
            <br />
        </ItemTemplate>
        <SelectedItemStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
    </asp:DataList>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:connString %>" 
        SelectCommand="GetAllInsurance" SelectCommandType="StoredProcedure">
    </asp:SqlDataSource>

</asp:Content>

